package galatea;

import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JList;
import javax.swing.ListSelectionModel;

public class LayerList extends JList{
	private static DefaultListModel listModel;
	
	LayerList(){
		listModel = new DefaultListModel();
		listModel.addElement("Robot Layer");
		listModel.addElement("System Layer");
		listModel.addElement("Component Layer");
		listModel.addElement("Object Layer");
		listModel.addElement("Function Layer");
		listModel.addElement("Code Layer");
		this.setModel(listModel);
		
		this.setBorder(BorderFactory.createTitledBorder("Layers"));
		
		this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		this.setVisibleRowCount(6);
	}
}
